package net.lovesrc.support.service.mobileverifycode;

public class MobileVerifyCodeWrapper {

    private final MobileVerifyCodeService mobileVerifyCodeService;

    private final String itemId;

    public MobileVerifyCodeWrapper(MobileVerifyCodeService mobileVerifyCodeService, String itemId) {
        this.mobileVerifyCodeService = mobileVerifyCodeService;
        this.itemId = itemId;
    }

    public String getPhone() {
        return mobileVerifyCodeService.getPhone(itemId);
    }


    public String getPhone(String phone) {
        return mobileVerifyCodeService.getPhone(itemId, phone);
    }

    public String getPhone(String phone,String card) {
        return mobileVerifyCodeService.getPhone(itemId, phone,card);
    }

    public String getVerifyCodeFromPhone(String phone) {
        return mobileVerifyCodeService.getVerifyCodeFromPhone(itemId, phone);
    }

    public String getVerifyCodeFromPhone(String phone, int size) {
        return mobileVerifyCodeService.getVerifyCodeFromPhone(itemId, phone, size);
    }

    public void addBlack(String phone) {
        mobileVerifyCodeService.addBlack(itemId, phone);
    }

    public void releasePhone(String phone) {
        mobileVerifyCodeService.releasePhone(itemId, phone);
    }

}
